package net.jxiny.oschina.synthetical.Adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;


import net.jxiny.oschina.R;
import net.jxiny.oschina.synthetical.enyity.English;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class EnglishAdapter extends BaseQuickAdapter<English, BaseViewHolder> {


    public EnglishAdapter(int layoutResId, @Nullable List<English> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, English item) {

        helper.setText(R.id.english_title,item.getTitle());
        helper.setText(R.id.english_time,item.getPubDate());
        helper.setText(R.id.english_author,item.getAuthor());
        helper.setText(R.id.english_commentCount,item.getCommentCount());
    }
}